<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/manage/common/taglibs.jsp"%>
<c:if test="${initParam['ssoEnable']=='true'}">
    <%@ include file="/WEB-INF/jsp/manage/common/ssoInclude.jsp" %>
</c:if>
<script type="text/javascript">
$(function() {
	$.acooly.framework.registerKeydown('manage_signInfo_searchform','manage_signInfo_datagrid');
});
/***
 * 加载选择的签约信息对应签约渠道合同号表
 */
function load_manage_businessRule_datagrid() {
    $.acooly.framework.fireSelectRow('manage_signInfo_datagrid', function (row) {
        $.acooly.framework.loadGrid({
            gridId: "manage_signContractno_datagrid",
            url: '/manage/signcontractno/signContractno/listJson.html',
            ajaxData: {"search_EQ_signInfoId": row.signInfoId}
        });
    }, '请先选择操作的商户数据行');
}
</script>
<div class="easyui-layout" data-options="fit : true,border : false">
  <!-- 查询条件 -->
    <form id="manage_signInfo_searchform" onsubmit="return false">
        <table class="tableForm" width="100%">
            <tr>
                <td align="left">
                    <div>
                        银行卡号: <input type="text" class="text" size="15" name="search_LIKE_accountNo"/>
                        账户: <input type="text" class="text" size="15" name="search_LIKE_accountName"/>
                        证件号码: <input type="text" class="text" size="15" name="search_LIKE_certNo"/>
                        电话号码: <input type="text" class="text" size="15" name="search_LIKE_phoneNo"/>
                        验证要素类型: <select style="width:80px;height:27px;" name="search_EQ_elementType" editable="false" panelHeight="auto" class="easyui-combobox"><option value="">所有</option><c:forEach var="e" items="${allElementTypes}"><option value="${e.key}" ${param.search_EQ_elementType == e.key?'selected':''}>${e.value}</option></c:forEach></select>
                        <a href="javascript:void(0);" class="easyui-linkbutton" data-options="plain:false" onclick="$.acooly.framework.search('manage_signInfo_searchform','manage_signInfo_datagrid');"><i class="fa fa-search fa-lg fa-fw fa-col"></i>查询</a>
                    </div>
                </td>
            </tr>
        </table>
    </form>

  <!-- 列表和工具栏 -->
    <div data-options="region:'center',border:false" style="overflow: hidden;height:40%" align="left">
    <table id="manage_signInfo_datagrid" class="easyui-datagrid" url="${pageContext.request.contextPath}/manage/signinfo/signInfo/listJson.html" toolbar="#manage_signInfo_toolbar" fit="true" border="false" fitColumns="false"
      pagination="true" idField="id" pageSize="20" pageList="[ 10, 20, 30, 40, 50 ]" sortName="id" sortOrder="desc" checkOnSelect="true" selectOnCheck="true" singleSelect="true" data-options="onClickRow:load_manage_businessRule_datagrid">
      <thead>
        <tr>
        	<th field="showCheckboxWithId" checkbox="true" data-options="formatter:function(value, row, index){ return row.id }">编号</th>
			<th field="id" sum="true">ID</th>
			<th field="accountNo">银行卡号</th>
			<th field="accountName">账户</th>
			<th field="certNo">证件号码</th>
			<th field="phoneNo">电话号码</th>
			<th field="elementType" formatter="mappingFormatter">验证要素类型</th>
			<th field="extendFields">拓展字段</th>
		    <th field="createTime" formatter="dateTimeFormatter">创建时间</th>
		    <th field="updateTime" formatter="dateTimeFormatter">更新时间</th>
          	<th field="rowActions" data-options="formatter:function(value, row, index){return formatAction('manage_signInfo_action',value,row)}">动作</th>
        </tr>
      </thead>
    </table>
    <!-- 每行的Action动作模板 -->
    <div id="manage_signInfo_action" style="display: none;">
      <a onclick="$.acooly.framework.show('/manage/signinfo/signInfo/show.html?id={0}',500,400);" href="#" title="查看"><i class="fa fa-file-o fa-lg fa-fw fa-col"></i></a>
    </div>
  </div>
    <div data-options="region:'south',border:false" style="height:58%;">
        <div id="manage_signcontract_sub_tab" class="easyui-tabs" fit="true">
            <!-- 列表和工具栏 -->
            <div data-options="region:'center',border:false">
                <table id="manage_signContractno_datagrid" class="easyui-datagrid" url="${pageContext.request.contextPath}/manage/signcontractno/signContractno/listJson.html" toolbar="#manage_signContractno_toolbar" fit="true" border="false" fitColumns="false"
                       pagination="true" idField="id" pageSize="20" pageList="[ 10, 20, 30, 40, 50 ]" sortName="id" sortOrder="desc" checkOnSelect="true" selectOnCheck="true" singleSelect="true">
                    <thead>
                    <tr>
                        <th field="showCheckboxWithId" checkbox="true" data-options="formatter:function(value, row, index){ return row.id }">编号</th>
                        <th field="id" >ID</th>
                        <th field="signInfoId" sum="true">签约信息ID</th>
                        <th field="gatewayChannelApi">渠道编码</th>
                        <th field="contractNo">合同号</th>
                        <th field="rowActions" data-options="formatter:function(value, row, index){return formatAction('manage_signContractno_action',value,row)}">动作</th>
                    </tr>
                    </thead>
                </table>
                <!-- 每行的Action动作模板 -->
                <div id="manage_signContractno_action" style="display: none;">
                    <a onclick="$.acooly.framework.show('/manage/signcontractno/signContractno/show.html?id={0}',500,400);" href="#" title="查看"><i class="fa fa-file-o fa-lg fa-fw fa-col"></i></a>
                </div>
            </div>
        </div>
    </div>
</div>
